| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

ShaderResourceDesc.h
1 // ShaderResourceDesc.h
3 //
5
6 namespace nkGraphics
7 {
11 template<typename T>
12 class ShaderBoundResourceDesc
13 {
14 public :
15
19 ShaderBoundResourceDesc () noexcept = default ;
27 ShaderBoundResourceDesc (unsigned int slot, unsigned int space, T* resource) noexcept ;
28
29 public :
30
31 unsigned int _slot ;
32 unsigned int _space ;
33
34 T* _resource ;
35 } ;
36
37 using ConstantBufferResourceDesc = ShaderBoundResourceDesc<ConstantBuffer> ;
38 using ShaderResourceDesc = ShaderBoundResourceDesc<ShaderResource> ;
39 using UavResourceDesc = ShaderBoundResourceDesc<Buffer> ;
40 using SamplerResourceDesc = ShaderBoundResourceDesc<Sampler> ;
41 }
nkGraphics::ShaderBoundResourceDesc::ShaderBoundResourceDesc
ShaderBoundResourceDesc() noexcept=default
nkGraphics::ShaderBoundResourceDesc
Holds information about a resource linked in a shader for feeding.
Definition: ShaderResourceDesc.h:13
nkGraphics::ShaderBoundResourceDesc::_space
unsigned int _space
The register space fed with the resource.
Definition: ShaderResourceDesc.h:32
nkGraphics::ShaderBoundResourceDesc::_slot
unsigned int _slot
The register slot fed with the resource.
Definition: ShaderResourceDesc.h:31
nkGraphics::Buffer
A buffer that will reside on the GPU.
Definition: Buffer.h:17
nkGraphics::ShaderBoundResourceDesc::_resource
T * _resource
The resource to feed with.
Definition: ShaderResourceDesc.h:34
nkGraphics::Sampler
Holds all the information needed of a sampler used during rendering.
Definition: Sampler.h:14
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ConstantBuffer
Describes a constant buffer.
Definition: ConstantBuffer.h:12
nkGraphics::ShaderResource
Base class for shader resources. Those are resources that can be fed to a Shader.
Definition: ShaderResource.h:12